package com.lt.bcra.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author LuoTian
 * @since 2022-05-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BcraCategory对象", description="")
public class BcraCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "种类编号id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "种类名称")
    private String category;

    @ApiModelProperty(value = "种类编号")
    private String code;

    @ApiModelProperty(value = "描述信息")
    private String description;

    @ApiModelProperty(value = "创建日期")
    @TableField(fill= FieldFill.INSERT)//创建时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改日期")
    @TableField(fill= FieldFill.INSERT_UPDATE)//创建和修改时候自动填充时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deleted",fill= FieldFill.INSERT)//创建时候自动填充逻辑删除标识
    @TableLogic
    private Boolean deleted;


}
